component  output="false" extends="AbsFactory"
{

	public LoginFactory function init(){
		
		return this;
	}
	
	public it.millemultimedia.easyBlog.model.Login function createInstance( required Any User ){
		
		var userObj = User;
		var loginObj = new it.millemultimedia.easyBlog.model.Login();
		
		var permissions = userObj.getPermissions();
		var preferences = userObj.getPreferences();
		
		loginObj.setUser( userObj );
		loginObj.setPermissions( permissions );
		loginObj.setPreferences( preferences );
		
		return loginObj;
	}


}
